package com.egene.tw.data.entity;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by wzx on 2018/7/3.
 */

public class SleepData  extends RealmObject {
    @PrimaryKey
    private long time;
    private int deepValue;
    private int shallowValue;
    private int total;
    private int walkingTimes;
    private long detailTime;


    private String userId;
    private boolean upload;

    public long getDetailTime() {
        return detailTime;
    }

    public SleepData setDetailTime(long detailTime) {
        this.detailTime = detailTime;
        return this;
    }

    public boolean isUpload() {
        return upload;
    }

    public SleepData setUpload(boolean upload) {
        this.upload = upload;
        return this;
    }

    public int getTotal() {
        return total;
    }

    public SleepData setTotal(int total) {
        this.total = total;
        return this;
    }

    public int getWalkingTimes() {
        return walkingTimes;
    }

    public SleepData setWalkingTimes(int walkingTimes) {
        this.walkingTimes = walkingTimes;
        return this;
    }

    public long getTime() {
        return time;
    }

    public SleepData setTime(long time) {
        this.time = time;
        return this;
    }

    public int getDeepValue() {
        return deepValue;
    }

    public SleepData setDeepValue(int deepValue) {
        this.deepValue = deepValue;
        return this;
    }

    public int getShallowValue() {
        return shallowValue;
    }

    public SleepData setShallowValue(int shallowValue) {
        this.shallowValue = shallowValue;
        return this;
    }

    public String getUserId() {
        return userId;
    }

    public SleepData setUserId(String userId) {
        this.userId = userId;
        return this;
    }
}
